package com.tencent.wxcloudrun.frontcontroller;

import com.tencent.wxcloudrun.dto.*;
import io.swagger.annotations.Api;
import io.swagger.v3.oas.annotations.Operation;
import lombok.Data;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author lichongbing
 * @version 1.0.0
 * @createdate 2023/3/4 18:59
 * @description: TODO
 */
@RestController
@Api(tags = "排队取号")
public class QuhaoController {
    /**
     * 获取队列分类
     */
    @Operation(summary = "获取队列分类")
    @PostMapping("/wxcloud/queuingTypes1")
    QueuingTypesResponse queuingTypes(HttpServletRequest request, @RequestBody QueuingTypesRequest json){
        return null;
    }
    @PostMapping("/wxcloud/queuingTypes")
    String test(){
    return "{\n" +
            "  \"code\": 0,\n" +
            "  \"data\": [\n" +
            "    {\n" +
            "      \"curNumber\": 4,\n" +
            "      \"dateAdd\": \"2020-10-05 18:22:46\",\n" +
            "      \"dateBegin\": \"2023-01-02 00:00:00\",\n" +
            "      \"dateEnd\": \"2033-01-31 01:02:03\",\n" +
            "      \"dateUpdate\": \"2023-03-05 16:37:51\",\n" +
            "      \"id\": 186,\n" +
            "      \"minitus\": 10,\n" +
            "      \"name\": \"大桌（8～10人）\",\n" +
            "      \"numberGet\": 15,\n" +
            "      \"paixu\": 0,\n" +
            "      \"status\": 0,\n" +
            "      \"statusStr\": \"正常\"\n" +
            "    },\n" +
            "    {\n" +
            "      \"curNumber\": 5,\n" +
            "      \"dateAdd\": \"2020-10-05 18:22:26\",\n" +
            "      \"dateBegin\": \"2020-10-05 18:22:26\",\n" +
            "      \"dateUpdate\": \"2023-03-05 15:43:41\",\n" +
            "      \"id\": 185,\n" +
            "      \"minitus\": 20,\n" +
            "      \"name\": \"3～4人\",\n" +
            "      \"numberGet\": 8,\n" +
            "      \"paixu\": 0,\n" +
            "      \"status\": 0,\n" +
            "      \"statusStr\": \"正常\"\n" +
            "    },\n" +
            "    {\n" +
            "      \"curNumber\": 0,\n" +
            "      \"dateAdd\": \"2020-10-05 18:22:16\",\n" +
            "      \"dateBegin\": \"2020-10-05 18:22:16\",\n" +
            "      \"dateUpdate\": \"2023-03-05 16:23:00\",\n" +
            "      \"id\": 184,\n" +
            "      \"minitus\": 10,\n" +
            "      \"name\": \"1~2人\",\n" +
            "      \"numberGet\": 7,\n" +
            "      \"paixu\": 0,\n" +
            "      \"status\": 0,\n" +
            "      \"statusStr\": \"正常\"\n" +
            "    }\n" +
            "  ],\n" +
            "  \"msg\": \"success\"\n" +
            "}\n";
    }

    /**
     * 排队进度查询
     */
    @Operation(summary = "获取队列分类")
    @PostMapping("/wxcloud/queuingMy")
    QueuingMyResponse queuingMy(HttpServletRequest request, @RequestBody QueuingMyRequest json){
        return null;
    }

    /**
     * 取号
     */
    @Operation(summary = "取号")
    @PostMapping("/wxcloud/queuingGet")
    QueuingGetResponse queuingGet(HttpServletRequest request, @RequestBody QueuingGetRequest json){
        return null;

    }
    /**
     * 预约
     */
    @Operation(summary = "预约")
    @PostMapping("/wxcloud/yuyueJoin")
    YuyueJoinResponse yuyueJoin(HttpServletRequest request,@RequestBody YuyueJoinRequest json){
        return null;
    }


}
